/*
 * @Author: xiehangyun 
 * @Date: 2025-05-16 18:16:33 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2025-09-03 16:24:53
 */
import Api from "src/api/Api";

//接口
class PromoteRelationshipsApi extends Api {

    constructor() {
        super();
    }

    //获取绑定父级信息
    getFirstParentInfo() {
        return this._get("/myPromotion/getFirstParentInfo");
    }

    // 绑定上级关系
    bindParentUserCode(userCode: string) {
        return this._post("/myPromotion/linkParentUserCode", { userCode });
    }

    //获取累计推广信息(只包含一级推广)
    getChildrenList(param: { pageNum: number, pageSize: number }) {
        return this._get("/myPromotion/getChildrenList", param);
    }

    //编辑下级备注接口
    updateRemarkName(param: { targetOpenId: string, remarkName: string }) {
        return this._post("/myPromotion/updateRemarkName", param);
    }


}

const promoteRelationshipsApi = new PromoteRelationshipsApi();

export default promoteRelationshipsApi;